
class MagicBox1<T>(item: T) {
    private var subject: T = item
}

class Boy1(val name: String, val age: Int)

class Dog(val weight: Int)

fun main() {
    val box1:MagicBox1<Boy1> = MagicBox1(Boy1("Jack",20))
    val box2:MagicBox1<Dog> = MagicBox1(Dog(20))
}
